import axios from 'axios'

let service = axios.create({
    baseURL:process.env.NODE_ENV === 'development' ? '' : "/api",
    timeout:5000
})
service.interceptors.request.use(config=>{
    return config
},error=>Promise.reject(error))


service.interceptors.response.use(response=>{
    return response.data
},error=>Promise.reject(error))
export default service